Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: [DocDB] Add additional logging about SST files #25465

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Rhythm-26
Copy link

@Rhythm-26 Rhythm-26 commented Jan 1, 2025

Issue - [DocDB] Add additional logging about SST files #20880

@CLAassistant
Copy link

CLAassistant commented Jan 1, 2025

CLA assistant check
All committers have signed the CLA.

@Rhythm-26 Rhythm-26 changed the title WIP: [DocDB] Add additional logging about SST files #20880 WIP: [DocDB] Add additional logging about SST files Jan 1, 2025
Copy link

netlify bot commented Jan 11, 2025

Deploy Preview for infallible-bardeen-164bc9 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d53afd6
🔍 Latest deploy log https://app.netlify.com/sites/infallible-bardeen-164bc9/deploys/67822bbae774440008f93a37
😎 Deploy Preview https://deploy-preview-25465--infallible-bardeen-164bc9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -76,6 +76,8 @@ struct TableProperties {
// The name of the filter policy used in this table.
// If no filter policy is used, `filter_policy_name` will be an empty string.
std::string filter_policy_name;
// Cache key prefix used for detecting collision of SST table.
std::string cache_key_prefix = "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metadata_cache_key_prefix_hex_str?
BTW, do we need data file cache key prefix as well?

hex_stream << static_cast<unsigned int>(
static_cast<unsigned char>(rep_->metadata_writer->compressed_cache_key_prefix.data[i]));
}
rep_->props.cache_key_prefix = hex_stream.str();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can just use

rep_->props.metadata_cache_key_prefix = Slice(rep_->metadata_writer->compressed_cache_key_prefix.data, rep_->metadata_writer->compressed_cache_key_prefix.size).ToDebugHexString();

<< "file_size" << fd.GetTotalFileSize();
<< "file_size" << fd.GetTotalFileSize()
<< "metadata_size" << fd.GetBaseFileSize()
<< "cache_key_prefix" << info.table_properties.cache_key_prefix;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"metadata_cache_key_prefix" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants